home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Jan 90 / MacApp.Tech$ 1⁄12⁄90 / 0358-Re menus w⁄small ico-Jan90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.1 KB  |  45 lines  |  [TEXT/GEOL]

  1. Item    0832817                         8-Jan-90        16:12
  2.  
  3. From:   KNEPPER                         Knepper, Christopher
  4.  
  5. To:     DAWSON.M                        Dawson, Mark
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    Re: menus w/small icons
  10.  
  11. Mark,
  12.  
  13. See Mac Tech Note 253. If you don't have it, it's available on AppleLink in the
  14. Developer Services bb.
  15.  
  16. It's fairly simple. Here's an example:
  17.  
  18. resource 'cmnu' (mCustomize) {
  19.    mCustomize,
  20.    textMenuProc,
  21.    allEnabled,
  22.    enabled,
  23.    "Customize",
  24.    {   "Text", \0x03, "\0x1E", nomark, plain, cCustText;
  25.    "Line", \0x05, "\0x1E", nomark, plain, cCustLine;
  26.    "Rectangle", \0x01, "\0x1E", nomark, plain, cCustRect;
  27.    "Round Rectangle", \0x02, "\0x1E", nomark, plain, cCustRRect;
  28.    "Oval", \0x04, "\0x1E", nomark, plain, cCustOval
  29.    }
  30. };
  31.  
  32. resource 'SICN' (257, "Rect", purgeable) {
  33.    {   /* array: 1 elements */
  34.    /* [1] */
  35.    $"00 00 00 00 00 00 7F FE 40 02 40 02 40 02 40 02"
  36.    $"40 02 40 02 40 02 40 02 7F FE"
  37.    }
  38. };
  39.  
  40. Note that "\0x1E" goes in the command key spot, and the SICN id (- 256) goes in
  41. the idon id spot.
  42.  
  43. -Chris
  44.  
  45.